@echo off
set ENV_ROOT_DIR_TEMP=%~dp0..
set ENV_ROOT_DIR=%ENV_ROOT_DIR_TEMP:\scripts\..=%
echo ENV_ROOT_DIR is %ENV_ROOT_DIR%
set PATH=%ENV_ROOT_DIR%\prebuild\gcc\win32\mingw64\bin;%ENV_ROOT_DIR%\prebuild\cmake-4.1.0-rc3-windows-x86_64\bin;%ENV_ROOT_DIR%\prebuild\make-3.81-bin\bin
gcc --version
cmake --version
make --version

REM 设置cmake 第三方库全局搜索路径
set PATH=%ENV_ROOT_DIR%\libs;%PATH%


REM 检查是否存在envfinished文件
if exist "%ENV_ROOT_DIR%\prebuild\envfinished" (
    goto end
) else (
    echo Please execute scripts\winenvinstall.bat first.
)
:end
